package com.flight.model.service.impl;

import com.flight.model.dao.FlightDAO;
import com.flight.model.dao.impl.FlightDAOImpl;
import com.flight.model.entity.Flight;
import com.flight.model.service.FlightService;
import java.util.Date;
import java.util.List;

/**
 * 航班服务实现类
 */
public class FlightServiceImpl implements FlightService {
    private FlightDAO flightDAO = new FlightDAOImpl();

    @Override
    public List<Flight> searchFlights(String depCity, String arrCity, Date depDate) {
        // 调用DAO查询航班
        return flightDAO.searchFlights(depCity, arrCity, depDate);
    }
}